package com.itheima.controller;

import com.itheima.service.FreeMarkerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class FreeMarkerController {
    @Autowired
    FreeMarkerService freeMarkerService;
    @GetMapping("/freeSetmeal")
    public void freeSetmeal(){
        log.info("开始生成静态页面: 套餐列表页面");
        freeMarkerService.generateSetmealFile("mobile_setmeal");
    }

}
